@use "./reset";
@use "./element-plus";

.app-container {
  padding: 15px;
  margin: 15px;
  background: #fff;
}

.search-container {
  padding: 18px 0 0 10px;
  margin-bottom: 10px;
  background-color: var(--el-bg-color-overlay);
  border: 1px solid var(--el-border-color-light);
  border-radius: 4px;
  box-shadow: var(--el-box-shadow-light);
}

.table-container > .el-card__header {
  padding: calc(var(--el-card-padding) - 8px) var(--el-card-padding);
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32 160 255);
  }
}

.el-icon.avatar-uploader-icon {
  width: 178px;
  height: 178px;
  font-size: 28px;
  color: #8c939d;
  text-align: center;
}

.article-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  background: none;

  .content {
    float: left;
    width: 895px;
    margin-right: 305px;

    .article-list {
      background: none;

      .el-link,
      .el-link__inner {
        display: block;

        --el-link-hover-text-color: none;

        .el-card {
          border: 1px solid #eaeaea;

          .el-card__body {
            display: flex !important;

            .list-content {
              margin-left: 20px;
            }

            header {
              overflow: hidden;
              font-size: 16px;
              font-weight: 700;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            p {
              margin: 5px 0;
              font-size: 14px;
              color: #888;
            }

            @media (width <= 767px) {
              .list-content,
              header,
              p {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
            }
          }

          .el-card__body:hover header {
            color: var(--el-menu-active-color);
          }
        }

        .el-card:hover {
          background-color: #fafff8 !important;
          // margin-left: -4px;
          // padding-left: 10px;
          border-left-color: var(--el-menu-active-color);
          border-left-width: 4px;
        }
      }
    }

    .article-header {
      position: relative;
      margin-bottom: 1px;
      font-size: 1.25rem;
      font-weight: 400;
      background-color: #f7f7f7;

      .meta {
        display: flex;

        .muted {
          margin-right: 20px;
          font-size: 12px;
          color: #999;
        }
      }
    }
  }

  .sidebar {
    position: relative;
    float: right;
    width: 290px;
    margin-left: -290px;
  }

  @media (width <= calc(1260px + $sidebar-width)) {
    .content {
      float: none;
      width: 100%;
      margin-right: 0;
      overflow: hidden;
    }

    .sidebar {
      display: none;
    }
  }
}
